xen/arm: introduce static shared memory
authorPenny Zheng <Penny.Zheng@arm.com>
Thu, 8 Sep 2022 13:55:05 +0000 (21:55 +0800)
committerStefano Stabellini <stefano.stabellini@amd.com>
Fri, 9 Sep 2022 19:57:57 +0000 (12:57 -0700)
commit1d98281adf41abc7cf4c30f48349577dc42aa6c0
treec6ad4ba7036b79272c2da5425c975ae19688b641
parent52daa6a8483e4fbd6757c9d1b791e23931791608
xen/arm: introduce static shared memory

This patch series introduces a new feature: setting up static
shared memory on a dom0less system, through device tree configuration.

This commit parses shared memory node at boot-time, and reserve it in
bootinfo.reserved_mem to avoid other use.

This commits proposes a new Kconfig CONFIG_STATIC_SHM to wrap
static-shm-related codes, and this option depends on static memory(
CONFIG_STATIC_MEMORY). That's because that later we want to reuse a few
helpers, guarded with CONFIG_STATIC_MEMORY, like acquire_staticmem_pages, etc,
on static shared memory.

Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
docs/misc/arm/device-tree/booting.txt
xen/arch/arm/Kconfig
xen/arch/arm/bootfdt.c
xen/arch/arm/include/asm/setup.h